/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.toto.product;

import java.rmi.RemoteException;
import java.util.Collection;
import javax.ejb.CreateException;
import javax.ejb.EJBHome;
import javax.ejb.FinderException;

/**
 *
 * @author Administrator
 */
public interface ProductHome extends EJBHome
{
  public Product create(String productID, String name, String description, double basePrice) throws RemoteException, CreateException;
  public Product findByPrimaryKey(ProductPK pk) throws FinderException, RemoteException;
  public Collection findByName(String name) throws FinderException, RemoteException;
  public Collection findByDescription(String description) throws FinderException, RemoteException;
  public Collection findByBasePrice(double basePrice) throws FinderException, RemoteException;
  public Collection findExpensiveProducts(double minPrice) throws FinderException, RemoteException;
  public Collection findCheapProducts(double maxPrice) throws FinderException, RemoteException;
  public Collection findAllProduct() throws FinderException, RemoteException;
}
